package com.qin.mall.service.Impl;

import com.qin.mall.mapper.CmsSubjectMapper;
import com.qin.mall.model.CmsSubject;
import com.qin.mall.model.CmsSubjectExample;
import com.qin.mall.service.CmsSubjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Leisure
 * create 2022 2022/10/15 8:49
 **/
@Service
public class CmsSubjectServiceImpl implements CmsSubjectService {
    @Autowired
    private CmsSubjectMapper subjectMapper;
    
    @Override
    public List<CmsSubject> listAll() {
        return subjectMapper.selectByExample(new CmsSubjectExample());
    }
}
